SelectMediaDeviceCallback

interface SelectMediaDeviceCallback : MediaSyncCallback<P, R>

A callback invoked when a web page requests to select a media input device.

If there are no media input devices of the requested type (e.g., no video input devices are available), this callback will not be invoked.

Important: the engine will be blocked until the callback returns control.

If this callback throws an exception, the system's default media input device will be used instead.

Since

7.1

Types

Link copied to clipboard
interface Params
Parameters for the SelectMediaDeviceCallback.
Link copied to clipboard
interface Response
A response for the SelectMediaDeviceCallback.

Functions

Link copied to clipboard
@CheckForNull
abstract fun on(params: P): R
Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.